﻿using System;
namespace Model
{
    /// <summary>
    /// Chapter:实体类(属性说明自动提取数据库字段的描述信息)
    /// </summary>
    [Serializable]
    public partial class Chapter
    {
        
        public Chapter()
        { }
        #region Model
        private int _pid;
        private string _pname;
        private int _catalogid;
        private int _bookid;
        private int _sectionid;
        private int _status;
        private string _state;//no db
        private DateTime _addtime;
        private DateTime _edittime;
        private string _descript;
        private string _content;
        private int _prepid;
        private int _nextpid;
        private int _clicks;
        private int _wordnum;
        private float _orderby;
              
        private string _pretitle;
        private string _backtitle;
        private string _seokey;
        private string _seodescript;
        private int _seostyle;

        public string pretitle
        {
            set { _pretitle = value; }
            get { return _pretitle; }
        }
        public string backtitle
        {
            set { _backtitle = value; }
            get { return _backtitle; }
        }

        public string seokey
        {
            set { _seokey = value; }
            get { return _seokey; }
        }
        public string seodescript
        {
            set { _seodescript = value; }
            get { return _seodescript; }
        }
        public int seostyle
        {
            set { _seostyle = value; }
            get { return _seostyle; }
        }

        /// <summary>
        /// 
        /// </summary>
        public int pid
        {
            set { _pid = value; }
            get { return _pid; }
        }
        /// <summary>
        /// 
        /// </summary>
        public string pname
        {
            set { _pname = value; }
            get { return _pname; }
        }
        /// <summary>
        /// 
        /// </summary>
        public int catalogid
        {
            set { _catalogid = value; }
            get { return _catalogid; }
        }
        /// <summary>
        /// 
        /// </summary>
        public int bookid
        {
            set { _bookid = value; }
            get { return _bookid; }
        }
        /// <summary>
        /// 
        /// </summary>
        public int sectionid
        {
            set { _sectionid = value; }
            get { return _sectionid; }
        }
        /// <summary>
        /// 
        /// </summary>
        public int status
        {
            set { _status = value; }
            get { return _status; }
        }

        public string state
        {
            //set { _state = value; }
            get
            {
                switch (_status)
                {
                    case 0: _state = "正常"; break;
                    case 1: _state = "推荐"; break;
                }
                return _state;

            }
        }

        /// <summary>
        /// 
        /// </summary>
        public DateTime addtime
        {
            set { _addtime = value; }
            get { return _addtime; }
        }
        /// <summary>
        /// 
        /// </summary>
        public DateTime edittime
        {
            set { _edittime = value; }
            get { return _edittime; }
        }
        /// <summary>
        /// 
        /// </summary>
        public string descript
        {
            set { _descript = value; }
            get { return _descript; }
        }
        public string content
        {
            set { _content = value; }
            get { return _content; }
        }

        public int prepid
        {
            set { _prepid = value; }
            get { return _prepid; }
        }

        public int nextpid
        {
            set { _nextpid = value; }
            get { return _nextpid; }
        }
        public int clicks
        {
            set { _clicks = value; }
            get { return _clicks; }
        }
        public int wordnum
        {
            set { _wordnum = value; }
            get { return _wordnum; }
        }

        public float orderby
        {
            set { _orderby = value; }
            get { return _orderby; }
        }
        #endregion Model


    }
    
}

